package com.woniuxy.lab.woniu_lab.service.dto.experDto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@ApiModel("我进行过的实验信息")
public class MyExperDto {
    /**
     * 实验编号
     */
    @ApiModelProperty(value = "实验编号",example = "TCF123456")
    private String no;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间",example = "2023-12-12 12:23:16")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 释放时间
     */
    @ApiModelProperty(value = "释放时间",example = "2023-12-12 13:23:16")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime releaseTime;

    /**
     * 实验运行状态(RUNNING/CLOSE)
     */
    @ApiModelProperty(value = "实验运行状态",example = "RUNNING",allowableValues = "RUNNING(运行中)/CLOSE(已关闭)")
    private String status;

    /**
     * 实验结果(SUCCESS/FAIL)
     */
    @ApiModelProperty(value = "实验结果",example = "SUCCESS",allowableValues = "SUCCESS(成功)/FAIL(失败)")
    private String result;

    /**
     * 积分
     */
    @ApiModelProperty(value = "积分",example = "2")
    private Integer score;

    /**
     * 实验封面地址
     */
    @ApiModelProperty(value = "实验封面地址", example = "https://www.woniuxy.com/static/woniuopen/img/woniubanner-2.png")
    private String pic;
}
